package com.dd.cloud.user.vo;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Lx
 * @version 1.0
 */
@Data
public class ExpressRes {
    /**
     * 处方号
     */
    private String tencode;
    /**
     * 物流轨迹信息
     */
    private String expressTrackDetail;
    /**
     * 轨迹生成时间
     */
    private LocalDateTime expressCompanyTime;
    /**
     * 快递公司单号
     */
    private String thirdExpressWaybillNo;
    /**
     * 0订单轨迹结束 1未结束
     */
    private Integer isEnd;
    /**
     * 快递公司名称
     */
    private String expressCompanyName;

    /**
     * 流转类型 1已下单 2已发货 3已揽件 4运输中 5派送中 6已签收
     */
    private Integer type;

    public ExpressRes() {
    }

    public ExpressRes(DslExpressRes.Data dslData) {
        this.expressTrackDetail = dslData.getExpress_track_detail();
        this.expressCompanyTime = dslData.getExpress_company_time();
        this.thirdExpressWaybillNo = dslData.getThird_express_waybill_no();
        this.isEnd = dslData.getIs_end();
        this.expressCompanyName = dslData.getExpress_company_name();
    }
}
